package com.handle.system.api.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import lombok.experimental.SuperBuilder;

import java.io.Serializable;

/**
 * <p>
 * 角色菜单关联表
 * </p>
 *
 * @author zhangqing
 * @since 2021-03-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@SuperBuilder(toBuilder = true)
@AllArgsConstructor
@NoArgsConstructor
public class SysRoleMenu implements Serializable {

    /**
     * 角色ID
     */
    @TableField
    private Long roleId;

    /**
     * 菜单ID
     */
    @TableField
    private Long menuId;


    public static final String ROLE_ID = "role_id";

    public static final String MENU_ID = "menu_id";

}
